/*
 * Copyright 2025 arisgo@163.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.arisgo.cloud.attendance.clazz.vo;

import com.arisgo.cloud.web.model.NumberId;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.time.LocalDate;

/**
 * 班
 *
 * @author Coulson
 * @since 2024-12-31
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Schema(description = "班信息")
public class ClassInfoVo extends NumberId {

    /**
     * 租户
     */
    @Schema(name = "tenantId", description = "租户")
    private Long tenantId;

    /**
     * 班组
     */
    @Schema(name = "groupId", description = "班组")
    private Long groupId;

    /**
     * 年 冗余字段
     */
    @Schema(name = "year", description = "年 冗余字段")
    private Integer year;

    /**
     * 月 冗余字段
     */
    @Schema(name = "month", description = "月 冗余字段")
    private Integer month;

    /**
     * 日 冗余字段
     */
    @Schema(name = "day", description = "日 冗余字段")
    private Integer day;

    /**
     * 日期
     */
    @Schema(name = "workDate", description = "日期")
    private LocalDate workDate;
    /**
     * 类型
     */
    @Schema(name = "type", description = "类型")
    private Integer type;

    /**
     * 名称
     */
    @Schema(name = "name", description = "名称")
    private String name;
    /**
     * 简称
     */
    @Schema(name = "shortName", description = "简称")
    private String shortName;
    /**
     * 颜色
     */
    @Schema(name = "color", description = "颜色")
    private String color;
    /**
     * 持续时间
     */
    @Schema(name = "duration", description = "持续时间")
    private Integer duration;
    /**
     * 是否正常
     */
    @Schema(name = "isNormal", description = "是否正常")
    private Boolean isNormal;
    /**
     * 备注
     */
    @Schema(name = "remark", description = "备注")
    private String remark;

}
